package com.rany.day05.demo05;

public class Tset {
    public static void main(String[] args) {
        //匿名内部类
        /*MyInterface myInterface = */
        //同时也是匿名对象
        new MyInterface() {
            @Override
            public void method() {
                System.out.println("匿名内部类执行");
            }
        }.method();
    }
}
